average value of a function with two variables